<h1>Add work order type</h1>
 <% if flash[:notice] %>
    <div class="notice"><%= flash[:notice] %></div>
  <% end %>

<%= link_to "Back", :controller => "hello", :action => "index" %> 
<p>
<%= form_for @workordertype, :url => { :action => "createworkordertype" } do |f| %>
  <% if @workordertype.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@workordertype.errors.count, "error") %> prohibited this event from being saved:</h2>

      <ul>
      <% @workordertype.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label "Workorder type:" %><br />
    <%= f.text_field :workorder_type %>
  </div> 

  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  
  <div class="field">
    <%= f.label "Color:" %><br />
    <%= f.text_field :color %>
  </div>  
  
    <div class="field">
    <%= f.label "Standard Time:" %><br />
    <%= f.text_field :standard_time %>
  </div>  
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>